import {EntityId, PageQueryParams} from "kf-web-library";

export interface ManuscriptInvitationPageQueryParams extends Partial<PageQueryParams> {
  searchText?: string;
  ids?: EntityId[];
  status?: string;  //状态 InvitationStatus
  authorName?: string;  //作者名字
  authorEmail?: string;  //作者邮箱
  authorPhone?: string;  //作者电话
  columnName?: string;  //约稿栏目
  columnNamecolumnName?: string;  //发布日期范围
}

export interface ManuscriptInvitation {
  id: number; //主键
  authorName: string; //作者名字
  authorEmail: string; //作者邮箱
  authorPhone: string; //作者电话
  columnName: string; //约稿栏目
  topic: string; //约稿主题
  status: string; //约稿状态 InvitationStatus
  articleLink: string; //发文链接
  articleDate: string; //发表时间
  createTime: string; //创建时间
  createUserId: number; //${column.comment}
  modifyTime: string; //修改时间
  modifyUserId: number; //${column.comment}
}

export interface ManuscriptInvitation_Create {
  authorName: string; //作者名字
  authorEmail: string; //作者邮箱
  authorPhone: string; //作者电话
  columnName: string; //约稿栏目
  topic: string; //约稿主题
  status: string; //约稿状态 InvitationStatus
  articleLink: string; //发文链接
  articleDate: string; //发表时间
}

export interface ManuscriptInvitation_Modify extends ManuscriptInvitation_Create {
  id: EntityId;
}

export interface ManuscriptInvitation_Patch extends Partial<ManuscriptInvitation_Modify> {
  id: EntityId;
}

